package com.kly.user.service;

import com.fqgj.common.api.Response;
import com.kly.user.dto.UserConversationDto;
import com.kly.user.dto.UserConversationRecordDto;
import com.kly.user.dto.UserConversationVO;

import java.util.List;
import java.util.Map;

public interface UserConversationService {

    public void addUserConversationList(List<UserConversationRecordDto> userConversationRecordDto);

    void addUserConversation(UserConversationRecordDto userConversationRecordDto);

    Map<Integer, List<UserConversationRecordDto>> getUserConversationList(Map<String, Object> params);

    Response<List<UserConversationVO>> getAllConversationByUserCode(String userCode);

    UserConversationDto getUserConversation(String userCode, String toUserCode);

    Map<String, UserConversationRecordDto> getUserConversationMsgNum(Map<String, Object> params);

    Response isExists(String fromUserCode, String toUserCode, Integer conversationType);
}
